app.service('wzdjhyhData',function () {
    var data = {};
    this.setData = function (newData) {
        data = newData;
    };
    this.getData = function (){
        return data
    }
}).controller('wzdjhyh',['$scope','$http','wzdjhyhData',function ($scope,$http,wzdjhyhData) {
    // $scope.item =[
    //     {
    //         "bumen":"安全部",
    //         "weizhi":"偶偶偶",
    //         "miaoshu":"反反复复",
    //         "paicharen":"张三",
    //         "paichariqi":"2018-02-14",
    //         "zhenggairiqi":"2018-02-14",
    //         "zhenggaifuzheren":"aa",
    //     },{
    //         "bumen":"安全部",
    //         "weizhi":"偶偶偶",
    //         "miaoshu":"反反复复",
    //         "paicharen":"张三",
    //         "paichariqi":"2018-02-14",
    //         "zhenggairiqi":"2018-02-14",
    //         "zhenggaifuzheren":"aa",
    //     },{
    //         "bumen":"安全部",
    //         "weizhi":"偶偶偶",
    //         "miaoshu":"反反复复",
    //         "paicharen":"张三",
    //         "paichariqi":"2018-02-14",
    //         "zhenggairiqi":"2018-02-14",
    //         "zhenggaifuzheren":"aa",
    //     },{
    //         "bumen":"安全部",
    //         "weizhi":"偶偶偶",
    //         "miaoshu":"反反复复",
    //         "paicharen":"张三",
    //         "paichariqi":"2018-02-14",
    //         "zhenggairiqi":"2018-02-14",
    //         "zhenggaifuzheren":"aa",
    //     },{
    //         "bumen":"安全部",
    //         "weizhi":"偶偶偶",
    //         "miaoshu":"反反复复",
    //         "paicharen":"张三",
    //         "paichariqi":"2018-02-14",
    //         "zhenggairiqi":"2018-02-14",
    //         "zhenggaifuzheren":"aa",
    //     },
    // ];
    //
    var token = localStorage.getItem('token');
    mui.showLoading('正在加载','div');
    //
    $http({
        method: "POST",
        url: mainUrl+'/srp/srp-tro-detail!find.action',
        params: {
            'Authorization': token,
            'qm.remindCode':'101',
            'page':1,
            'start':0,
            'limit':999999

        }
    }).then(
        function(data, status, headers, config){
           console.log(data);
           $scope.items = data.data.items;
            mui.hideLoading();

        },function(data, status, headers, config){

        }
    );
    $scope.sending = function ($event){
        wzdjhyhData.setData($event);
    };

}]);